#ifndef WATER_H
#define WATER_H

#include "SDL.h"

#define PAL_SIZE 12

typedef struct
{
	SDL_Surface* sf;
	SDL_Color* color;
	SDL_Surface* surface;
	int palette_pos;
	int frame;
} Water;

Water* water_init(SDL_Surface* sf, SDL_Color* color, SDL_Color dark, SDL_Color light, 
		int palette_pos);
void water_set_palette(Water *w, SDL_Surface* sf);
void water_replace(Water *w, SDL_Surface *sf, int replace);
void water_cycle(Water *w);
void free_water(Water *w);

// TODO - morph palette

#endif
